/*
 * Color.java
 * Created on July 15, 2007, 8:37 PM
 */

package view;

/**
 *
 * @author Erol Hira
 */
public class Color {
    
    private int r;
    private int g;
    private int b;
    
    
    public Color(int r, int g, int b){        
        this.r = r;
        this.g = g;
        this.b = b;
    }
    
    //------------------------------------------------------------------ 

    public int getR() {
        return r;
    }

    public int getG() {
        return g;
    }

    public int getB() {
        return b;
    }
    
    public boolean equals(Color color){
        if(color.getR() == r &&
                color.getG() == g &&
                color.getB() == b){
            return true;
        } else {
            return false;
        }
    }
    
    //------------------------------------------------------------------
    
    public static final Color BLACK = new Color(0,0,0);
    public static final Color WHITE = new Color(255,255,255);
    public static final Color YELLOW = new Color(255,255,0);
    public static final Color RED = new Color(255,0,0);
    public static final Color BLUE = new Color(0,0,255);
        
}
